package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="THR_UserArchives", catalog="Id")
public class ThrUserArchives extends BaseEntity<ThrUserArchives> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="ArchivesBid", nameJava="archivesBid", typeDataBase="varchar")
	private String archivesBid;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="UserSex", nameJava="userSex", typeDataBase="tinyint")
	private Integer userSex;
	@YsField(nameDataBase="Birthday", nameJava="birthday", typeDataBase="varchar")
	private String birthday;
	@YsField(nameDataBase="NativePlace", nameJava="nativePlace", typeDataBase="varchar")
	private String nativePlace;
	@YsField(nameDataBase="Education", nameJava="education", typeDataBase="tinyint")
	private Integer education;
	@YsField(nameDataBase="GraduationDate", nameJava="graduationDate", typeDataBase="varchar")
	private String graduationDate;
	@YsField(nameDataBase="GraduationSchool", nameJava="graduationSchool", typeDataBase="varchar")
	private String graduationSchool;
	@YsField(nameDataBase="Major", nameJava="major", typeDataBase="varchar")
	private String major;
	@YsField(nameDataBase="Telephone", nameJava="telephone", typeDataBase="varchar")
	private String telephone;
	@YsField(nameDataBase="Address", nameJava="address", typeDataBase="varchar")
	private String address;
	@YsField(nameDataBase="WorkCity", nameJava="workCity", typeDataBase="varchar")
	private String workCity;
	@YsField(nameDataBase="RoleId", nameJava="roleId", typeDataBase="bigint")
	private Long roleId;
	@YsField(nameDataBase="RoleIdAttribute", nameJava="roleIdAttribute", typeDataBase="tinyint")
	private Integer roleIdAttribute;
	@YsField(nameDataBase="DeptId", nameJava="deptId", typeDataBase="varchar")
	private String deptId;
	@YsField(nameDataBase="HeadUserId", nameJava="headUserId", typeDataBase="varchar")
	private String headUserId;
	@YsField(nameDataBase="BelongCompany", nameJava="belongCompany", typeDataBase="varchar")
	private String belongCompany;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="UserState", nameJava="userState", typeDataBase="tinyint")
	private Integer userState;
	@YsField(nameDataBase="EntryDate", nameJava="entryDate", typeDataBase="varchar")
	private String entryDate;
	@YsField(nameDataBase="FormalDate", nameJava="formalDate", typeDataBase="varchar")
	private String formalDate;
	@YsField(nameDataBase="DepartDate", nameJava="departDate", typeDataBase="varchar")
	private String departDate;
	@YsField(nameDataBase="DingDingId", nameJava="dingDingId", typeDataBase="varchar")
	private String dingDingId;
	@YsField(nameDataBase="OfficeId", nameJava="officeId", typeDataBase="bigint")
	private Long officeId;
	@YsField(nameDataBase="GraduationCertificate", nameJava="graduationCertificate", typeDataBase="varchar")
	private String graduationCertificate;
	@YsField(nameDataBase="EducationCertificate", nameJava="educationCertificate", typeDataBase="varchar")
	private String educationCertificate;
	@YsField(nameDataBase="LaborContract", nameJava="laborContract", typeDataBase="varchar")
	private String laborContract;
	@YsField(nameDataBase="OtherFile", nameJava="otherFile", typeDataBase="varchar")
	private String otherFile;
	@YsField(nameDataBase="IdCard", nameJava="idCard", typeDataBase="varchar")
	private String idCard;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public ThrUserArchives setId(Long id) {
		this.id = id;
		return this;
	}
	public String getArchivesBid() {
		return archivesBid;
	}
	public ThrUserArchives setArchivesBid(String archivesBid) {
		this.archivesBid = archivesBid;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public ThrUserArchives setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public ThrUserArchives setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public Integer getUserSex() {
		return userSex;
	}
	public ThrUserArchives setUserSex(Integer userSex) {
		this.userSex = userSex;
		return this;
	}
	public String getBirthday() {
		return birthday;
	}
	public ThrUserArchives setBirthday(String birthday) {
		this.birthday = birthday;
		return this;
	}
	public String getNativePlace() {
		return nativePlace;
	}
	public ThrUserArchives setNativePlace(String nativePlace) {
		this.nativePlace = nativePlace;
		return this;
	}
	public Integer getEducation() {
		return education;
	}
	public ThrUserArchives setEducation(Integer education) {
		this.education = education;
		return this;
	}
	public String getGraduationDate() {
		return graduationDate;
	}
	public ThrUserArchives setGraduationDate(String graduationDate) {
		this.graduationDate = graduationDate;
		return this;
	}
	public String getGraduationSchool() {
		return graduationSchool;
	}
	public ThrUserArchives setGraduationSchool(String graduationSchool) {
		this.graduationSchool = graduationSchool;
		return this;
	}
	public String getMajor() {
		return major;
	}
	public ThrUserArchives setMajor(String major) {
		this.major = major;
		return this;
	}
	public String getTelephone() {
		return telephone;
	}
	public ThrUserArchives setTelephone(String telephone) {
		this.telephone = telephone;
		return this;
	}
	public String getAddress() {
		return address;
	}
	public ThrUserArchives setAddress(String address) {
		this.address = address;
		return this;
	}
	public String getWorkCity() {
		return workCity;
	}
	public ThrUserArchives setWorkCity(String workCity) {
		this.workCity = workCity;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public ThrUserArchives setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public Integer getRoleIdAttribute() {
		return roleIdAttribute;
	}
	public ThrUserArchives setRoleIdAttribute(Integer roleIdAttribute) {
		this.roleIdAttribute = roleIdAttribute;
		return this;
	}
	public String getDeptId() {
		return deptId;
	}
	public ThrUserArchives setDeptId(String deptId) {
		this.deptId = deptId;
		return this;
	}
	public String getHeadUserId() {
		return headUserId;
	}
	public ThrUserArchives setHeadUserId(String headUserId) {
		this.headUserId = headUserId;
		return this;
	}
	public String getBelongCompany() {
		return belongCompany;
	}
	public ThrUserArchives setBelongCompany(String belongCompany) {
		this.belongCompany = belongCompany;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public ThrUserArchives setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getUserState() {
		return userState;
	}
	public ThrUserArchives setUserState(Integer userState) {
		this.userState = userState;
		return this;
	}
	public String getEntryDate() {
		return entryDate;
	}
	public ThrUserArchives setEntryDate(String entryDate) {
		this.entryDate = entryDate;
		return this;
	}
	public String getFormalDate() {
		return formalDate;
	}
	public ThrUserArchives setFormalDate(String formalDate) {
		this.formalDate = formalDate;
		return this;
	}
	public String getDepartDate() {
		return departDate;
	}
	public ThrUserArchives setDepartDate(String departDate) {
		this.departDate = departDate;
		return this;
	}
	public String getDingDingId() {
		return dingDingId;
	}
	public ThrUserArchives setDingDingId(String dingDingId) {
		this.dingDingId = dingDingId;
		return this;
	}
	public Long getOfficeId() {
		return officeId;
	}
	public ThrUserArchives setOfficeId(Long officeId) {
		this.officeId = officeId;
		return this;
	}
	public String getGraduationCertificate() {
		return graduationCertificate;
	}
	public ThrUserArchives setGraduationCertificate(String graduationCertificate) {
		this.graduationCertificate = graduationCertificate;
		return this;
	}
	public String getEducationCertificate() {
		return educationCertificate;
	}
	public ThrUserArchives setEducationCertificate(String educationCertificate) {
		this.educationCertificate = educationCertificate;
		return this;
	}
	public String getLaborContract() {
		return laborContract;
	}
	public ThrUserArchives setLaborContract(String laborContract) {
		this.laborContract = laborContract;
		return this;
	}
	public String getOtherFile() {
		return otherFile;
	}
	public ThrUserArchives setOtherFile(String otherFile) {
		this.otherFile = otherFile;
		return this;
	}
	public String getIdCard() {
		return idCard;
	}
	public ThrUserArchives setIdCard(String idCard) {
		this.idCard = idCard;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public ThrUserArchives setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public ThrUserArchives setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public ThrUserArchives setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static ThrUserArchives thrUserArchives(
		String archivesBid,
		String userId,
		String userName,
		Integer userSex,
		String birthday,
		String nativePlace,
		Integer education,
		String graduationDate,
		String graduationSchool,
		String major,
		String telephone,
		String address,
		String workCity,
		Long roleId,
		Integer roleIdAttribute,
		String deptId,
		String headUserId,
		String belongCompany,
		String remark,
		Integer userState,
		String entryDate,
		String formalDate,
		String departDate,
		String dingDingId,
		Long officeId,
		String graduationCertificate,
		String educationCertificate,
		String laborContract,
		String otherFile,
		String idCard,
		Integer status
			) {
		ThrUserArchives entity = new ThrUserArchives();
		entity.setArchivesBid(archivesBid);
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setUserSex(userSex);
		entity.setBirthday(birthday);
		entity.setNativePlace(nativePlace);
		entity.setEducation(education);
		entity.setGraduationDate(graduationDate);
		entity.setGraduationSchool(graduationSchool);
		entity.setMajor(major);
		entity.setTelephone(telephone);
		entity.setAddress(address);
		entity.setWorkCity(workCity);
		entity.setRoleId(roleId);
		entity.setRoleIdAttribute(roleIdAttribute);
		entity.setDeptId(deptId);
		entity.setHeadUserId(headUserId);
		entity.setBelongCompany(belongCompany);
		entity.setRemark(remark);
		entity.setUserState(userState);
		entity.setEntryDate(entryDate);
		entity.setFormalDate(formalDate);
		entity.setDepartDate(departDate);
		entity.setDingDingId(dingDingId);
		entity.setOfficeId(officeId);
		entity.setGraduationCertificate(graduationCertificate);
		entity.setEducationCertificate(educationCertificate);
		entity.setLaborContract(laborContract);
		entity.setOtherFile(otherFile);
		entity.setIdCard(idCard);
		entity.setStatus(status);
		return entity;
	}
}